package com.zmc.lostfound.post.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zmc.lostfound.common.utils.PageResult;
import com.zmc.lostfound.common.utils.Result;
import com.zmc.lostfound.post.entity.PostReviewEntity;
import com.zmc.lostfound.post.vo.PostReviewQueryVO;
import com.zmc.lostfound.post.vo.PostReviewSaveVO;

/**
 * @author WJS
 * @description 帖子审核业务接口
 * @email 2869581855@qq.com
 * @date 2023-07-05 15:49:44
 */
public interface PostReviewService extends IService<PostReviewEntity> {

    /**
     * 多条件查询审核信息
     *
     * @param postReviewQueryVO 分页参数
     * @return PageResult
     */
    PageResult queryPage(PostReviewQueryVO postReviewQueryVO);

    /**
     * 按id查询审核信息
     *
     * @param id 审核信息id
     * @return PostReviewEntity
     */
    PostReviewEntity queryInfoById(Long id);

    /**
     * 新增审核信息
     *
     * @param postReviewSaveVO 帖子审核记录新增/修改请求体
     * @return Result
     */
    Result insertPostReview(PostReviewSaveVO postReviewSaveVO);

    /**
     * 修改审核信息
     *
     * @param postReviewSaveVO 帖子审核记录新增/修改请求体
     * @return Result
     */
    Result updatePostReview(PostReviewSaveVO postReviewSaveVO);

    /**
     * 按主键id删除审核信息
     *
     * @param id 审核id
     * @return Result
     */
    Result deleteById(Long id);

    /**
     * 按帖子id批量删除审核信息
     *
     * @param postId 帖子id
     * @return Result
     */
    Result deleteBatchByPostId(Long postId);

}

